

            var roll = null;
            var animations = [];
            for(var m = 0;m < $('.ready').length;m++){
                $('.ready')[m].ind = m;
                animations.push($('.ready')[m]);
            }
            roll = setInterval(function(){
                if(beginningDelay != null){
                    beginningDelay += 10;
                    if(beginningDelay <= animateDelayCount) return false;
                }
                if(!animations.length){
                    clearInterval(roll);
                };        
                for(var r = 0;r < animations.length;r++){
                    var ele_h = animations[r].offsetHeight;
                    var ele_top = animations[r].offsetTop;
                    var window_h = window.innerHeight;
                    var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
                    if((/*ele_top > window_h && */
                        //
                        ele_top < window_h + scrollTop)
                        &&
                        (ele_h + ele_top > scrollTop)
                        ||
                        (ele_top < window_h && scrollTop < ele_top)){
                            var ind = animations[r].ind;
                            $('.ready:eq(' + ind +')').addClass('frozen'); 
                            animations.splice(r,1);
                            if(!animations.length){
                                clearInterval(roll);
                            }
                            break;
                            
                    }
                }
            },10);